package com.karaoke.android.home.vm

import android.app.Activity
import com.karaoke.android.library.mvvm.FragmentViewModel

/**
 * Created by allen on 2017/4/25.
 */
class MediaListPageViewModel(val type: Int, val activity: Activity) : FragmentViewModel()
{
//    val songs: List<Song>
//    val songBindings: ItemBinding<Song> = ItemBinding.of<Song>(BR.item, R.layout.media_list_item)
//    val adapter = ObservableField<MediaListAdapter>()
//
//    init
//    {
//        if (type == 0)
//            songs = mediaList.list
//        else songs = mediaList.endList
//    }
//
//    private var mRecyclerViewDragDropManager: RecyclerViewDragDropManager? = null
//
//    private var mWrappedAdapter: MediaListAdapter? = null
//
//    override fun onViewCreated(view: View?, savedInstanceState: Bundle?)
//    {
//        super.onViewCreated(view, savedInstanceState)
//        mRecyclerViewDragDropManager = RecyclerViewDragDropManager()
//        mRecyclerViewDragDropManager?.setDraggingItemShadowDrawable(
//                ContextCompat.getDrawable(activity, R.drawable.material_shadow_z3) as NinePatchDrawable)
//
//        mWrappedAdapter = mRecyclerViewDragDropManager?.createWrappedAdapter(MediaListAdapter()) as MediaListAdapter?
//
//
//        val animator = DraggableItemAnimator()
//    }
}